package com.xw.dao;

import com.xw.model.User;
import com.xw.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author wangxiaoxiao
 */
@Component
public interface UserMapper extends Mapper<User> {

    /**
     *  根据条件动态查询用户并带有分页
     * @param user
     * @return
     */
    List<UserVo> findByWhere(UserVo user);

    /**
     * 根据userid批量删除
     * @param userIds
     * @return
     */
    Integer dels(@Param("userIds") String... userIds);
}